﻿using MediatR;
using PoemGame.Domain.Seedwork;

namespace PoemGame.Events.MediatR
{
    /// <summary>
    /// 实现MediatR INotification
    /// 将BaseEventDataLocal进行封装
    /// </summary>
    /// <typeparam name="T">BaseEventDataLocal</typeparam>
    public class LocalEvent<T> : INotification where T:BaseEventDataLocal
    {
        public LocalEvent(T eventData)
        {
            EventData = eventData;
        }

        public T EventData { get; private set; }


    }
}